Package-level declarations

Types

Link copied to clipboard

This is an adapter interface with empty defaults for all of ActivityLifecycleCallbacks functions except the one.

Link copied to clipboard

A specialized AppCompatViewInflater that hooks into the layout inflation pipeline to apply the library's custom properties to selected Views.

Link copied to clipboard

The comparison rules used for string values in tag matching.

Link copied to clipboard
class MaterialComponentsShadowHelper : MaterialComponentsViewInflater

A specialized AppCompatViewInflater that hooks into the layout inflation pipeline to apply the library's custom properties to selected Views.

Link copied to clipboard

A simple Application subclass that unconditionally sets the platform shadow inflater helper on every Activity instance that is created. Included mainly for illustrative purposes.

Link copied to clipboard
interface TagMatcher

The interface used by the inflation helpers to select Views using custom criteria.

Properties

Link copied to clipboard

Constant of the name for manifest <meta-data> elements that point to XML resources for tag matchers.

Functions

Link copied to clipboard

Attaches the helper for AppCompat themes, and searches the theme and manifest for the (optional) matchers XML reference. Must be called before super.onCreate.

Attaches the helper for AppCompat themes with matchers built from the provided XML resource. Must be called before super.onCreate.

Attaches the helper for AppCompat themes with the given list of matchers. Must be called before super.onCreate

Link copied to clipboard

Attaches the helper for Material Components themes, and searches the theme and manifest for the (optional) matchers XML reference. Must be called before super.onCreate.

Attaches the helper for Material Components themes with matchers built from the provided XML resource. Must be called before super.onCreate.

Attaches the helper for Material Components themes with the given list of matchers. Must be called before super.onCreate.

Link copied to clipboard

Attaches the platform helper, and searches the theme and manifest for the (optional) matchers XML reference. Must be called before setContentView.

Attaches the platform helper with matchers built from the provided XML resource. Must be called before setContentView.

Attaches the platform helper with the given list of matchers. Must be called before setContentView.

Link copied to clipboard
fun idMatcher(@IdRes matchId: Int = View.NO_ID, matchName: String? = null, matchRule: MatchRule = MatchRule.Equals): TagMatcher

Creates a matcher to match a specific R.id exactly, or to match (possibly multiple) ID names by a given comparison rule.

Link copied to clipboard
fun nameMatcher(matchName: String, matchRule: MatchRule = MatchRule.Equals): TagMatcher

Creates a matcher to match (possibly multiple) tag names by a given comparison rule.